<div style="width:1000px;margin:20px auto">
<table cellpadding="5" cellspacing="1" width="100%" bgcolor="#ccc">
        <tr>
            <td colspan="5" bgcolor="#CC3300" style="padding:6px; color:#FFFFFF; font-size:14px;">
                <strong><a href="admin_promotion.html" style="color:#FFF">QUẢN TRỊ CHƯƠNG TRÌNH KHUYẾN MẠI</a></strong></td>   	
        </tr>
        <tr>
          <td colspan="5" align="left" bgcolor="#FFFFFF">{$msg}</td>
        </tr>
        <tr>
          <td width="16%" align="right" bgcolor="#FFFFFF"><strong>Upload file</strong> ( <strong>.zip</strong> )</td>
          <td width="1%" align="left" bgcolor="#FFFFFF">&nbsp;</td>
          <td colspan="3" align="left" bgcolor="#FFFFFF"><input type="file" name="zipfile"> <input type="submit" value="Upload" /></td>
      </tr>
        <tr>
          <td align="right" bgcolor="#FFFFFF">&nbsp;</td>
          <td align="left" bgcolor="#FFFFFF">&nbsp;</td>
          <td colspan="3" align="left" bgcolor="#FFFFFF">&nbsp;</td>
        </tr>
      <tr>
    <td colspan="5" align="center" bgcolor="#CC3300" style="padding:6px; color:#FFFFFF; font-size:14px;">
                DANH SÁCH CÁC CHƯƠNG TRÌNH KM         </td>   	
        </tr>
        {if $p_arry}
        <tr>
          <td colspan="3" align="left" bgcolor="#FFFFFF"><strong>Tên chương trình</strong></td>
          <td width="31%" align="left" bgcolor="#FFFFFF"><strong>Url</strong></td>
          <td width="21%" align="left" bgcolor="#FFFFFF">&nbsp;</td>
        </tr>
        {foreach from=$p_arry item=item}
            <tr>
                <td colspan="3" align="left" bgcolor="#FFFFFF"><a href="{$item.url}" target="_blank">{$item.name}</a></td>   	
                <td align="left" bgcolor="#FFFFFF"><input readonly value="{$item.url}" onfocus="this.select();" onblur="this.select();" onclick="this.select();" style="width:300px"/></td>
                <td align="left" nowrap="nowrap" bgcolor="#FFFFFF"><a href="{$item.url}" target="_blank">Xem</a> {$item.edit} {$item.delete}</td>
            </tr>
        {/foreach}
        {else}
        <tr>
            <td colspan="5" align="center" bgcolor="#FFFFFF"><strong>Chưa có chương trình nào được Upload lên!</strong></td>   	
        </tr>
        {/if}
    </table>
</div>